package com.swak.frame.exception;

import com.swak.frame.dto.base.RestApiCode;


/**
 * ClassName: SysException.java 
 * @Description: System Exception is unexpected Exception, retry might work again
 * @author colley.ma
 * @date 2021年3月16日
 */
public class SysException extends BaseException {

    private static final long serialVersionUID = 4355163994767354840L;

    public SysException(String errMessage){
        super(errMessage);
    }

    public SysException(RestApiCode errCode, String errMessage) {
        super(errMessage);
        this.setErrCode(errCode);
    }
    
    public SysException(String errMessage, Throwable e) {
        super(errMessage, e);
    }

    public SysException(String errMessage, RestApiCode errorCode, Throwable e) {
        super(errMessage, e);
        this.setErrCode(errorCode);
    }
}
